<?php
class user_handler extends Controller {
	
	public $viewData;
	
	function user_handler() {
		parent::Controller();
		
		$this->load->library('cartpool');
		$this->load->library('session');
		
		$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate");
	}
	
	function index() {
	}
	
	function getUsersInGroup(){
		if(isset($this->session->userdata['id'])){
			$this->viewData->cartpoolData = array(
			$this->viewData->userList_data = 
				"groupMembers" => $this->cartpool->getGroupMembers(),
				"sessionData" => $this->session->userdata			
			);
			$this->load->view('user_list', $this->viewData);
		}			
	}
}